package cz.proks.bank;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class SpringAppContext implements ApplicationContextAware {
	private static ApplicationContext CONTEXT = null;
	
	public static ApplicationContext getApplicationContext() {
		return CONTEXT;
	}
	
	@Override
	public void setApplicationContext(ApplicationContext context) throws BeansException {
		SpringAppContext.CONTEXT = context;
	}
}
